However, that flexibility comes at a cost, as the heavy use of global variables is a common problem seen in untestable code. 然而,这种灵活性是有代价的,过度使用全局变量是不可测试代码的一个通病。
This can be achieved by setting a global flag in the handler code and checking for the flag after completion of the critical part. 这可以通过在信号处理程序代码中设置一个全局标志并在完成关键部分的代码之后检查这个标志来实现。
You can define any number of global fixtures, which allows splitting up of initialization code. 可以定义任意数量的全局装备,因此可以把初始化代码分割为多个部分。
This eliminates the need for every Python project to keep a global testing script somewhere in their code base. 这样,每个Python项目就不再需要在代码基中维护全局测试脚本。
If the global resource name changes for any reason, the application code doesn't change& only this mapping. 如果全局资源名称出于某种原因发生了变化,而应用程序的代码无需变化,那么只需修改这个映射即可。
In assembly language, the static data and global variables are separated out in memory from the code. 在汇编语言中,静态数据和全局变量与代码在内存中是分开的。
It is worth noticing how the y coordinate of the popUp window of the vertical menu button is converted from local to global coordinates in the last line of this code fragment. 您有必要了解如何将垂直菜单按钮的popUp窗口的y坐标从局部坐标转换成全局坐标(见代码片段的最后一行)。
It would be harder to maintain code that has a bunch of global variables in the JavaScript code, hoping you pick the right thread to stop/ start at various times. 具有大量全局变量的JavaScript代码将会更难维护,只能期待您能选中正确的线程来在不同时间停止/启动。
We discussed how template inheritance can be used to add behaviors ( like starting and committing a global transaction) transparently to the servlet code. 我们讨论了如何使用模板继承来向servlet代码透明的添加行为(比如启动和提交全局事务)。
Expandos, on the other hand, are global in nature: Once the expando code has executed, those changes appear for the rest of the application. 另一方面,Expandos本质上是全局的:一旦expando代码执行,这些改变将会出现在应用程序的其余部分中。
In particular, the Institute of international finance, a global association of banks, is seeking to create a code of best practice, which would discourage banks from giving incentives to traders to take excessively risky bets while failing to censure them if these turn sour. 全球银行业协会国际金融研究所(instituteofinternationalfinance)正试图制定一套最佳行为准则,劝阻银行不要提供让交易员进行风险过高押注的激励同时避免在情况恶化时,让他们逃脱责难。
No citizen of any country should be subject to a repressive global code when they send an email or post a comment to a news article. 任何国家的公民,在发送一封电子邮件或对一篇新闻报道进行评论时,都不应受制于一种具有压制性的全球性规定。
I encourage all involved in tourism to embrace the ten principles of the Global Code of Ethics for Tourism. 我鼓励所有参与旅游业的人员遵守《全球旅游业道德守则》的十项原则。
In line with abbreviating, the module-oriented principle carries on the global design of the thesis and source code. 本着化繁为简,面向模块的原则进行论文和源代码的整体设计。
Addressing global economic imbalances cannot be code for a discussion between America and China, in which European countries are bystanders. 解决全球经济失衡,不可能成为中美谈判的原则在中美谈判中,欧洲国家是旁观者。
The Alliance and several of its partners, in particular WHO, is also working on a Global Code of Practice on ethical international recruitment of health workers. 联盟和其合作伙伴,特别是世界卫生组织,正在就卫生人员国际招募的伦理道德制定国际行为准则。
A much better course is to draw up a global code of conduct. 一个好得多的办法是起草一份全球行为准则。
Threading: Oniguruma uses global locks when initializing code range tables or managing shared AST nodes ( like Character Class hashtable). 多线程:Oniguruma在初始化代码范围表或者管理共享的AST节点(如Character类散列表)时,使用全局锁。
Toggles the display level in the Code Selector between global code and all code 在全局代码和所有代码之间切换代码选择器中的显示级别
In May, the World Health Assembly approved a global code of practice on the international recruitment of health workers. 五月份,世界卫生大会通过了国际医疗工作者招募行为准则。
Firstly, some basic information and the global development of RS code are introduced in macroscopical view. 本论文首先从宏观上介绍了与RS码有关的基本常识和国内外发展现状。
In respect of optimization, the paper adopts genetic algorithm which has a capability of global search, and adopts float code in place of binary code. 在优化计算方面,本文使用了具有全局搜索能力的遗传算法,并采用浮点数编码以克服二进制编码的不足。
Irradiance based method substitute the measured ratio of diffusion to global irradiance to the aerosol scatter computed by radiance transfer code. 辐照度基法定标采用实际测量的漫射与总辐射比来代替辐射传输计算的气溶胶散射。
The Research of the Global Optimization Problem on the Vector Quantize of Speech Code 语音矢量量化全局最优问题的研究
Global Minimum of Mutational Deterioration of Genetic Code 遗传密码突变危险性的全局极小
The circular correlation algorithm can be used for acquiring Global Positioning System ( GPS) C/ A code signals. 采用圆周相关算法实现全球卫星定位系统(GPS)C/A码信号的捕获。
Its local optimization mechanism is its advantage, while its lake of architecture-specific optimization and weakness of global optimization has degradation its total generated code performance. 具备相当完善的局部优化机制,同时缺乏全局的优化策略,以及针对特定体系结构的优化。
TX The Global Electronic Commerce Issue of Uniform Commercial Code 全球电子商务有待解决的统一商业代码问题
Pseudo-random sequences are widely used in global positioning systems, code division multiple access, ranging systems, spread spectrum communication systems, stream cipher and so on. 伪随机序列在全球定位系统、码分多址系统、测量距离系统、扩频通信系统、流密码等领域都有广泛的应用。